package operateur;

/**
 * Enum definition : Proximite
 *
 * @author OpenORB Compiler
*/
public final class Proximite implements org.omg.CORBA.portable.IDLEntity
{
    /**
     * Enum member MEMES_REGIONS value 
     */
    public static final int _MEMES_REGIONS = 0;

    /**
     * Enum member MEMES_REGIONS
     */
    public static final Proximite MEMES_REGIONS = new Proximite(_MEMES_REGIONS);

    /**
     * Enum member REGIONS_ADJACENTES value 
     */
    public static final int _REGIONS_ADJACENTES = 1;

    /**
     * Enum member REGIONS_ADJACENTES
     */
    public static final Proximite REGIONS_ADJACENTES = new Proximite(_REGIONS_ADJACENTES);

    /**
     * Enum member REGIONS_ELOIGNEES value 
     */
    public static final int _REGIONS_ELOIGNEES = 2;

    /**
     * Enum member REGIONS_ELOIGNEES
     */
    public static final Proximite REGIONS_ELOIGNEES = new Proximite(_REGIONS_ELOIGNEES);

    /**
     * Internal member value 
     */
    private final int _Proximite_value;

    /**
     * Private constructor
     * @param  the enum value for this new member
     */
    private Proximite( final int value )
    {
        _Proximite_value = value;
    }

    /**
     * Maintains singleton property for serialized enums.
     * Issue 4271: IDL/Java issue, Mapping for IDL enum.
     */
    public java.lang.Object readResolve() throws java.io.ObjectStreamException
    {
        return from_int( value() );
    }

    /**
     * Return the internal member value
     * @return the member value
     */
    public int value()
    {
        return _Proximite_value;
    }

    /**
     * Return a enum member from its value
     * @param  an enum value
     * @return an enum member
         */
    public static Proximite from_int(int value)
    {
        switch (value)
        {
        case 0 :
            return MEMES_REGIONS;
        case 1 :
            return REGIONS_ADJACENTES;
        case 2 :
            return REGIONS_ELOIGNEES;
        }
        throw new org.omg.CORBA.BAD_OPERATION();
    }

    /**
     * Return a string representation
     * @return a string representation of the enumeration
     */
    public java.lang.String toString()
    {
        switch (_Proximite_value)
        {
        case 0 :
            return "MEMES_REGIONS";
        case 1 :
            return "REGIONS_ADJACENTES";
        case 2 :
            return "REGIONS_ELOIGNEES";
        }
        throw new org.omg.CORBA.BAD_OPERATION();
    }

}
